Mark all monitors that fullscreen when window is using
the _NET_WM_FULLSCREEN_MONITORS to be fullscreen on multiple monitors.
https://bugzilla.gnome.org/show_bug.cgi?id=646861
for (let i = 0; i < this.monitors.length; i++)
this.monitors[i].inFullscreen = true;
} else {
- let monitor = this.monitors[metaWindow.get_monitor()];
- if (monitor)
- monitor.inFullscreen = true;
+ let monitors = metaWindow.get_all_monitors();
+ for (let i = 0; i < monitors.length; i++)
+ this.monitors[i].inFullscreen = true;
}
}
}